package com.hsgene.order.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.order.controller.ExportController;
import com.hsgene.order.service.api.MqService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * MQ
 *
 * @author wxf
 * @date 2018/12/25 9:55
 **/
@Component
public class MqServiceImpl implements MqService {

    /**
     * Log
     */
    private Logger LOGGER = LogManager.getLogger(MqServiceImpl.class);

    @Override
    public ApiResult sendMQ(Map<String, Object> content) {
        LOGGER.error("send point is error");
        return ApiResult.fail(CommonErrorCode.MQ_SERVICE_NOT_AVAILABLE);
    }
}
